package com.chen.apiboos.service;

import com.chen.apiboos.remote.ServiceDriverUserClient;
import com.chen.internalcommon.dto.DriverCarBindingRelationship;
import com.chen.internalcommon.dto.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenLiuPing
 **/
@Service
@Slf4j
public class DriverCarBindingRelationshipService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    public ResponseResult bind(DriverCarBindingRelationship driverCarBindingRelationship) {

        log.info("司机车辆信息绑定");
        return serviceDriverUserClient.bind(driverCarBindingRelationship);

    }

    public ResponseResult unbind(DriverCarBindingRelationship driverCarBindingRelationship) {
        log.info("司机车辆信息解绑");
        return serviceDriverUserClient.unbind(driverCarBindingRelationship);
    }

}
